package com.yoyo.itravel.service;

import com.yoyo.itravel.bean.SightCompany;
import com.yoyo.itravel.exceptions.SightCompanyException;
import org.apache.ibatis.annotations.Select;

import java.sql.SQLException;
import java.util.List;

/**
 * @Description 景点公司相关操作服务层接口
 *
 * @author HZX
 * @date 2020/6/18 14:20
 */
public interface ISightCompanyService {

    /**
     * @Description 添加景点公司
     *
     * @param sightCompany
     * @return boolean
     */
    boolean addSightCompany(SightCompany sightCompany) throws SightCompanyException;

    /**
     * @Description 通过景点公司id删除景点公司
     *
     * @param sightCompany
     * @return boolean
     */
    boolean deleteById(SightCompany sightCompany) throws SightCompanyException;

    /**
     * @Description 通过景点公司属性查询景点公司
     *
     * @param sightCompany
     * @return SightCompany
     */
    List<SightCompany> find(SightCompany sightCompany) throws SightCompanyException;

    /**
     * @Description 通过景点公司id修改景点公司信息
     *
     * @param sightCompany
     * @return boolean
     */
    boolean updateById(SightCompany sightCompany) throws SightCompanyException;

    /**
     * @Description 通过门票具体类型id查找景点公司支付宝UID
     *
     * @param detailTypeId
     * @return java.lang.String
     */
    String findAlipayUIDByDetailTypeId(String detailTypeId) throws SightCompanyException;

}
